package com.projects.soundza.tests.services.crud;

import org.testng.Assert;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;

import com.projects.soundza.app.factory.ContactFactory;
import com.projects.soundza.domain.Contact;

public class AddressCrudTest {
	
  @Test
  public void testContactFactory {
	  String cellNum = "0726063778";
	  String email = "hein@gmail.com";
	  Strng fbLink = "www.facebook.com/hein";
	  Contact contact = ContactFactory.getContact(cellNum, email, fbLink);
	  
	  Assert.assertEquals(contact.getCellNumber(), cellNum, "Cell incorrect");
	  Assert.assertEquals(contact.getEmail(), email, "Email incorrect");
	  Assert.assertEquals(contact.getFacebook(), fbLink, "Facebook incorrect");
  }
  
  @BeforeClass
  public void beforeClass() {
  }

  @AfterClass
  public void afterClass() {
  }

}
